package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.OperationEmpRecordAddDTO;
import org.jsola.hr.dto.OperationEmpRecordUpdateDTO;
import org.jsola.hr.query.OperationEmpRecordQuery;
import org.jsola.hr.vo.*;

import java.util.List;

/**
 * 操作员工记录表
 *
 * @author zhr
 */
@Api(tags = "hr-操作员工记录表")
public interface IOperationEmpRecordControllerAPI {

    /**
     * Post查询花名册或员工概览今日新增人员page
     * @param operationEmpRecordQuery 操作员工记录表查询参数
     * @return page
     */
    @ApiOperation(value="查询花名册或员工概览今日新增人员page")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "查询今日新增人员page", dataType = "OperationEmpRecordQuery", value = "操作员工记录表查询参数", paramType = "body")
    })
    Result<Page<EmpInfoVO>> postQueryEmpPageList(OperationEmpRecordQuery operationEmpRecordQuery);

    /**
     * 查询花名册或员工概览今日新增人员page
     * @param operationEmpRecordQuery 操作员工记录表查询参数
     * @return page
     */
    @ApiOperation(value="查询花名册或员工概览今日新增人员page")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "查询今日新增人员page", dataType = "OperationEmpRecordQuery", value = "操作员工记录表查询参数", paramType = "query")
    })
    Result<Page<EmpInfoVO>> queryEmpPageList(OperationEmpRecordQuery operationEmpRecordQuery);

    /**
     * 查询预登记今日新增人员page
     * @param operationEmpRecordQuery 操作员工记录表查询参数
     * @return page
     */
    @ApiOperation(value="查询预登记今日新增人员page")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "查询今日新增人员page", dataType = "OperationEmpRecordQuery", value = "操作员工记录表查询参数", paramType = "query")
    })
    Result<Page<CheckInPeopleListVO>> queryCheckInPageList(OperationEmpRecordQuery operationEmpRecordQuery);

    /**
     * 查询今日新增数量相关参数
     * @param operationEmpRecordQuery 操作员工记录表查询参数
     * @return 操作员工记录表展示对象
     */
    @ApiOperation(value="查询今日新增数量相关参数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "operationEmpRecordQuery", dataType = "OperationEmpRecordQuery", value = "操作员工记录表查询参数", paramType = "body")
    })
    Result<OperationEmpRecordListVO> postQueryCount(OperationEmpRecordQuery operationEmpRecordQuery);

    /**
     * 查询今日新增数量相关参数
     * @param operationEmpRecordQuery 操作员工记录表查询参数
     * @return 操作员工记录表展示对象
     */
    @ApiOperation(value="查询今日新增数量相关参数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "operationEmpRecordQuery", dataType = "OperationEmpRecordQuery", value = "操作员工记录表查询参数", paramType = "query")
    })
    Result<OperationEmpRecordListVO> queryCount(OperationEmpRecordQuery operationEmpRecordQuery);

    /**
     * 新增操作员工记录表
     * @param operationEmpRecordAddDTO 操作员工记录表新增实体
     * @return 操作员工记录表展示对象
     */
    @ApiOperation(value = "新增操作员工记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "operationEmpRecordAddDTO", dataType = "OperationEmpRecordAddDTO", value = "新增操作员工记录表", paramType = "body")
    })
    Result<OperationEmpRecordVO> save(OperationEmpRecordAddDTO operationEmpRecordAddDTO);


    /**
     * 修改操作员工记录表
     * @param operationEmpRecordUpdateDTO 操作员工记录表
     * @return 更新数量
     */
    @ApiOperation(value = "修改操作员工记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "operationEmpRecordUpdateDTO", dataType = "OperationEmpRecordUpdateDTO", value = "修改操作员工记录表", paramType = "body")
    })
    Result<Integer> update(OperationEmpRecordUpdateDTO operationEmpRecordUpdateDTO);




    /**
     * 删除单个操作员工记录表，彻底删除
     * @param operationEmpRecordId 操作员工记录表id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个操作员工记录表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "operationEmpRecordId", dataType = "String", value = "操作员工记录表id", paramType = "path")
    })
    Result<Integer> delete(String operationEmpRecordId);


    /**
     * 批量删除操作员工记录表，彻底删除
     * @param operationEmpRecordIds 操作员工记录表id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除操作员工记录表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "operationEmpRecordIds", dataType = "String[]", value = "操作员工记录表id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] operationEmpRecordIds);


    /**
     * 根据操作员工记录表id查询操作员工记录表详情
     * @param operationEmpRecordId 操作员工记录表id
     * @return 操作员工记录表详情
     */
    @ApiOperation(value="根据操作员工记录表id查询操作员工记录表详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "operationEmpRecordId", dataType = "String", value = "操作员工记录表id", paramType = "path")
    })
    Result<OperationEmpRecordVO> findById(String operationEmpRecordId);


    /**
     * 查询操作员工记录表
     * @param operationEmpRecordQuery 操作员工记录表查询参数
     * @return page
     */
    @ApiOperation(value="查询操作员工记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "operationEmpRecordQuery", dataType = "OperationEmpRecordQuery", value = "操作员工记录表查询参数", paramType = "query")
    })
    Result<List<OperationEmpRecordListVO>> listAll(OperationEmpRecordQuery operationEmpRecordQuery);


     /**
     * 分页查询操作员工记录表
     * @param operationEmpRecordQuery 操作员工记录表查询参数
     * @return page
     */
    @ApiOperation(value="分页查询操作员工记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "operationEmpRecordQuery", dataType = "OperationEmpRecordQuery", value = "操作员工记录表查询参数", paramType = "query")
    })
    Result<Page<OperationEmpRecordListVO>> page(OperationEmpRecordQuery operationEmpRecordQuery);


}

